package main

import (
	"fmt"
	"net/http"
)

var urls = []string{
	"http://www.baidu.com",
	"http://www.google.com",
	"http://www.sina.com.cn",
	"http://www.163.com",
}

func main() {
	for _, v := range urls {
		resp, err := http.Head(v)
		if err != nil {
			fmt.Println("Head request ERROR：", err)
			continue
		}
		fmt.Println(resp.Status)
	}
}